package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 收据或者发票（拍照）
 * </p>
 *
 * @author hpiggy
 * @since 2025-01-01
 */
@Data
@TableName("audit_photo")
@ApiModel(value = "AuditPhoto对象", description = "收据或者发票（拍照）")
public class AuditPhoto implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("申请表id")
    private Long sourseId;

    @ApiModelProperty("1、报销申请，2付款申请，3备用金申请，4学员退费申请")
    private Integer type;

    @ApiModelProperty("报销申请：（1、收据或者发票，2、付款截图）")
    private Integer imageType;

    @ApiModelProperty("完整路径，例：oss完整路径")
    private String imageFullPath;

    @ApiModelProperty("相对路径")
    private String imagePath;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;


}
